package com.ruoyi.entity.mapper;

import com.ruoyi.entity.domain.Image;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 图片Mapper接口
 *
 * @author Delamer
 * @date 2020-12-23
 */
public interface ImageMapper extends BaseMapper<Image> {
    public Image getImageByKey(String key);
    public Image getImageByKeyNot(String key);
    public Integer getImageSizeByKey(String key);
    public Integer getImageSizeByKeyNot(String key);
    public List<Image> getImagesUnLoad();
    public List<Image> getImagesError();
    @Select("#{sql}")
    public List<Image> getImageBySql(String sql);
}
